<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="renderer" content="webkit">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>源码{$tit} - 我的管理中心</title>
{include file="head"}
<link href="/static/thinkct/css/basic.css?v=1" rel="stylesheet" type="text/css" /><script language="javascript" src="/static/thinkct/js/jquery.m.js"></script><script language="javascript" src="/static/thinkct/js/layui/layui.js"></script><script language="javascript" src="/static/thinkct/js/common.js?v=1"></script><script language="javascript" src="/static/thinkct/js/member.js?v=1"></script><link href="/static/thinkct/css/member.css?v=1" rel="stylesheet" type="text/css" /><link href="/static/thinkct/js/layui/css/layui.css" rel="stylesheet" type="text/css" /><script language="javascript" src="/static/thinkct/js/plupload.js"></script><script language="javascript" src="/static/thinkct/js/upload.js"></script><script language="javascript" src="/static/thinkct/editor/js/wangEditor.min.js"></script><link href="/static/thinkct/editor/css/wangEditor.min.css" rel="stylesheet" type="text/css" /></head>
<body>
<!--头部-->
{include file="uhead"}

<!--头部-->
<div class="umain">
{include file="uleft"} 
<div class="uright">
<div class="mwz"><li class="cur">源码发布</li>
{if(state('code') == 0)}<li class="prompt r red">您当前发布信息，需要人工审核通过后才能展示！<a onclick="noauidt('code','');" style="color: #056dae;" data="state">如何免审?</a></li>{/if}</div>
<form class="layui-form layui-font14"  name="code" action="" method="post" enctype="multipart/form-data">
<div class="layui-form-item">
<label class="layui-form-label"><span class=red>*</span> 源码类型</label>
<div class="layui-input-inline">
<select lay-verify="required"   name="menus[]" > 
<option value="">请选择..</option>
{foreach($menus['type'] as $v)}
<option value='{$v.id}' data-tips='{$v.tips}' {if($v.id == $row.menus)}selected{/if}>{$v.name2}</option>
{/foreach}
</select></div>
<div class="layui-form-mid layui-word-aux" style="margin:0;color:red"></div></div><div class="layui-form-item"><label class="layui-form-label"><span class=red>*</span> 系统品牌</label><div class="layui-input-inline"><select lay-verify="required" class="brand" lay-filter="brand"  name="menus[]" > <option value="">请选择..</option>{foreach($menus['brand'] as $v)}<option value='{$v.id}' data-tips='{$v.tips}' {if($v.id == $row.brand)}selected{/if}>{$v.name2}</option>{/foreach}</select></div><div class="layui-form-mid layui-word-aux" style="margin:0;color:red"></div></div><div class="layui-form-item"><label class="layui-form-label"><span class=red>*</span> 开发语言</label><div class="layui-input-inline"><select lay-verify="required"  class="lang" lay-filter="lang" name="menus[]" > <option value="">请选择..</option>{foreach($menus['lang'] as $v)}<option value='{$v.id}' data-tips='{$v.tips}' {if($v.id == $row.lang)}selected{/if}>{$v.name2}</option>{/foreach}</select></div><div class="layui-form-mid layui-word-aux" style="margin:0;color:red"></div></div><div class="layui-form-item"><label class="layui-form-label"><span class=red>*</span> 数据库</label><div class="layui-input-inline"><select lay-verify="required"  class="sql" name="menus[]" > <option value="">请选择..</option>{foreach($menus['sql'] as $v)}<option value='{$v.id}' data-tips='{$v.tips}' {if($v.id == $row.sql1)}selected{/if}>{$v.name2}</option>{/foreach}</select></div><div class="layui-form-mid layui-word-aux" style="margin:0;color:red"></div></div><div class="layui-form-item">
    <label class="layui-form-label"><span class="red">*</span> 源文件</label>
	<div class='layui-input-inline'>
	<select lay-verify="required" name='encrypt'>
		<option value="">请选择..</option>
		{foreach($menus['encrypt'] as $v)}
		<option value="{$v.id}" {if($v.id == $row.encrypt)}selected{/if}>{$v.name2}</option>
		{/foreach}
		</select>
	 </div>
</div>

<div class="layui-form-item">
    <label class="layui-form-label"><span class="red">*</span> 授权</label>
	<div class='layui-input-inline'>
	<select lay-verify="required" name='auth' >
		<option value="">请选择..</option>
		{foreach($menus.auth as $v)}
		<option value="{$v.id}" {if($v.id == $row.auth)}selected{/if}>{$v.name2}</option>
		{/foreach}
	</select>
	</div>
</div>

<div class="layui-form-item">
    <label class="layui-form-label"><span class="red">*</span> 规格</label>
		<div class='layui-input-inline'>
			<select lay-verify="required" name='spec' >
				<option value="">请选择..</option>
				{foreach($menus.spec as $v)}
				<option value="{$v.id}" {if($v.id == $row.spec)}selected{/if}>{$v.name2}</option>
				{/foreach}
		    </select>
	</div>
</div>

<div class="layui-form-item">
    <label class="layui-form-label">移动端</label>
	<div class='layui-input-block'>
	<div class="layui-inline" style='margin-right:0;'>
	{foreach($menus.app as $v)}
	<input type="checkbox" lay-filter="app" name="app[]" value="{$v.id}" {:ifstr($row.app,$v.id)}><label class="app_label">{$v.name2}&nbsp;&nbsp;</label>{/foreach}	
	</div>
	<div class="layui-inline"><div class="layui-form-mid layui-word-aux">&nbsp;&nbsp;&nbsp;&nbsp;（指同时附带的移动端源码；不选则为不带）</div></div>	</div>
</div>

<div class="layui-form-item">
    <label class="layui-form-label"><span class="red">*</span> 标题</label>
    <div class="layui-input-inline"  style='width:400px;' >
	<input  name="tit" class="layui-input checkLen" value="{$row.tit}" maxlength="80"  d_len='40' lay-verify="tit"  style='width:400px;'  size="50" type="text" placeholder="不得含黄赌毒等违禁词,否则一律封号"/>
    </div>

	<div class="layui-form-mid layui-word-aux">您还可以输入 <b id="check_count">40</b> 个字</div>
	
	
</div>

<div class="layui-form-item">
    <label class="layui-form-label">简述</label>
	 <div class='layui-input-inline' style='width:400px;'>
		<textarea name="cdes" style='height:50px;' maxlength="100" class="layui-textarea checkLen" d_len='100'>{$row.cdes}</textarea> </div>
		<div class="layui-form-mid layui-word-aux">您还可以输入 <b id="check_count">100</b> 个字</div>
		</div>
<div class="layui-form-item">
    <label class="layui-form-label">详细介绍</label>
    <div class="layui-input-block form-textarea-box" style='overflow:visible;'><textarea name="txt" id='content' class="checkLen" >{$row.txt}</textarea></div>
</div>
<div class="layui-form-item">
    <label class="layui-form-label">介绍模板</label>
 <div class="layui-input-inline" style='width:100px'> <select name="temid" >
  <option value="">不设置..</option>
    <option value="">不设置..</option>

  </select></div>
 <div class="layui-input-inline" style='width:140px'><input name="retem" class="gx" type="checkbox" value="9" title="记住我的选择" /> </div>
 <div class="layui-form-mid layui-word-aux">多个源码描述有相同内容时，使用模板便于统一添加修改。 <a href="/lists/tem" target="_blank">管理<a> <a href="/form/tem" target="_blank">新增</a> </div>   
</div>


<div class="layui-form-item">
    <label class="layui-form-label"><span class="red">*</span> 缩略图</label>
    <div class="layui-input-block">
	<div class="layui-box layui-upload-button"><input type="file" name="file" {if($action == 'add')}lay-verify="required"{/if} id="picinp" class="layui-upload-file" accept="image/png,image/jpeg,image/gif" onchange="checkfile(this,'pic')"><span class="layui-upload-icon"><i class="layui-icon"></i>选择图片</span></div> <div class="layui-inline"> <div class="layui-form-mid layui-word-aux " style="color:red"></div></div>
	<br>
<div class="div_preview" pixel_data='0' size_data="1048576"  style='width:350px;height:280px;' id="pic">
{if($action == 'add')}<div class="preview_tips"><span><strong	 style='font-size:15px;'>缩略图(<font style='color:red;'>必传</font>)</strong> <p>一张清晰美观的缩略图会吸引买家的点击欲</p><p>尺寸最佳350x280，格式jpg/gif/png，大小限1M</p></span></div>
<img src="">{else}<img src="{:get_tp($row.bh)}">{/if}</div>
</div>
</div>
<div class="layui-form-item">
    <label class="layui-form-label"> 演示大图</label>
    <div class="layui-input-block">
	<div class="upload-box">
	<div class="container">
				<div class="statusBar">
				<div class="info"><b>1.</b>限传9张大图（含已传），尺寸不限，单图大小限3M，格式 jpg/gif/png<br><b>2.</b>演图可插入上方（详细介绍），未插入将按排序依次显示在详细介绍之后</div>
					<div class="btns">
					<a id="browse">选择图片</a>
					</div>
				</div>
		  <table  class="fu_list"   id='pluing' style="display:none;" >
            <thead>
              <tr>
                <td width="65%">待传队列（<u>0</u>） <font color="#888">提示：待传队列为点击最后的“确认提交”时开始上传</font></td>
				<td width="21%" align="center"></td>
                <td width="14%" align="center">操作</td>
              </tr>
            </thead>
            <tbody id="FileListing">
            </tbody>
          </table>
				<div class="filelist">
				{volist name="filelist" id="v"}
					<div>
					<p class='imgWrap'><img src='{$v.url}'><span class='icon'>{$i}</span></p><p class='file-panel' style='height: 0px; overflow: hidden;'>
					<a class='fleft' title='前移（调整排序）'><span></span><i></i></a>
					<a class='fdel' id='{$v.tmp_name}' title='删除（不可恢复）'><span></span><i></i></a>
					<a class='fright' title='后移（调整排序）'><span></span><i></i></a></p>
					</div>			
				{/volist}
				</div>	
	</div>
</div>
</div>
</div>

<div class="layui-form-item">
    <label class="layui-form-label">演示网址</label>
    <div class="layui-input-inline">
		<input  name="ysweb" class="layui-input" size="50" maxlength="50" value="{$row.ysweb}" type="text"  placeholder="选填，否则要以http(s)://开头"/>
	</div>
	<div class="layui-form-mid layui-word-aux">第三方短址、搜索引擎及快照、格式有误的地址，一律过滤不予显示</div></div>

<div class="layui-form-item">
    <label class="layui-form-label"><span class="red">*</span> 源码大小</label>
    <div class="layui-input-inline">
<input maxlength="8" name="sizes" class="layui-input s" lay-verify="sizes" value="{$row.sizes}" size="8" type="text" /> </div><div class="layui-form-mid layui-word-aux"> MB，描述大小和实际大小误差不能超过10%
</div></div>

<div class="layui-form-item">
    <label class="layui-form-label"><span class="red">*</span> 售价</label>
    <div class="layui-input-inline">
<input  name="money" class="layui-input s o_number"  lay-verify="money" value="{$row.money}" maxlength="8" size="8" type="text"/>  </div><div class="layui-form-mid layui-word-aux">元   
</div></div>

<div class="layui-form-item">
    <label class="layui-form-label">积分抵价</label>
    <div class="layui-input-inline">
 <select name="jfnum" lay-filter="jifen">
  <option value="0">不支持抵价</option>
   <option value="0.1" {if($row.jfnum == 0.1)}selected{/if}>可抵价10%</option> 
<option value="0.2" {if($row.jfnum == 0.2)}selected{/if}>可抵价20%</option> 
<option value="0.3" {if($row.jfnum == 0.3)}selected{/if}>可抵价30%</option> 
<option value="0.4" {if($row.jfnum == 0.4)}selected{/if}>可抵价40%</option> 
<option value="0.5" {if($row.jfnum == 0.5)}selected{/if}>可抵价50%</option> 
 </select></div>

<div class="layui-form-mid layui-word-aux"><span class='jifen_tips'></span> <a href={:sysconf('site_domain')}/help/view/5 target=_blank>积分是什么？</a></div>
</div>


<div class="layui-form-item">
    <label class="layui-form-label">安装服务</label>
    <div class="layui-input-block delivery">
<strong class='change {if($row.ifaz != 1)}cur{/if}'><input name="ifaz" lay-filter='change' type="radio" value="0" {if($row.ifaz != 1)}checked{/if} title='免费安装'/></strong> 
<strong class='change {if($row.ifaz == 1)}cur{/if}'><input name="ifaz" type="radio" value="1" lay-filter='change' {if($row.ifaz == 1)}checked{/if} title='收费安装'/></strong>
<div class="change_box">
<div class='box'>
</div>
<div {if($row.ifaz != 1)}style='display:none;'{/if} class='box'>
<div class="layui-form-item">
    <label class="layui-form-label"><span class="red">*</span> 安装费用</label>
    <div class='layui-input-inline' style='width:100px;'><input name="azmoney" class="layui-input s o_number"  lay-verify="azmoney" maxlength="8" value='{$row.azmoney}' size="8" type="text"/></div><div class="layui-form-mid layui-word-aux">元 <font class='gray'>（安装费不能超过售价的10%或200元，否则请提高售价！）</font></div></div>
</div>
<div class="layui-form-item icheckbox">
    <label class="layui-form-label"><span class=red>*</span> 主机类型</label>
    <div class='layui-input-block'>{foreach($menus.azsxid1 as $v)}<input type="checkbox" name="azsxid[]" value='{$v.id}' title='{$v.name2}' {:ifstr($row.azsxid,$v.id)}>{/foreach}</select></div></div><div class="layui-form-item icheckbox">
	<label class="layui-form-label"><span class=red>*</span> 操作系统</label>
    <div class='layui-input-block'>{foreach($menus.azsxid2 as $v)}<input type="checkbox" name="azsxid[]" value='{$v.id}' title='{$v.name2}' {:ifstr($row.azsxid,$v.id)}>{/foreach}</select></div></div><div class="layui-form-item icheckbox">
    <label class="layui-form-label"><span class=red>*</span> web服务</label>
    <div class='layui-input-block'>{foreach($menus.azsxid3 as $v)}<input type="checkbox" name="azsxid[]" value='{$v.id}' title='{$v.name2}' {:ifstr($row.azsxid,$v.id)}>{/foreach}</select></div></div><div class="layui-form-item icheckbox">
    <label class="layui-form-label"><span class=red>*</span> 安装方式</label>
    <div class='layui-input-block'>{foreach($menus.azsxid4 as $v)}<input type="checkbox" name="azsxid[]" value='{$v.id}' title='{$v.name2}' {:ifstr($row.azsxid,$v.id)}>{/foreach}</select></div></div><div class="layui-form-item icheckbox">
    <label class="layui-form-label"><span class=red>*</span> 伪静态</label>
    <div class='layui-input-block'>{foreach($menus.rewrite as $v)}<input type="radio" name="rewrite" value='{$v.id}' title='{$v.name2}' {:ifstr($row.rewrite,$v.id)}>{/foreach}</select></div></div><div class="layui-form-item">
    <label class="layui-form-label">备注说明</label>
    <div class='layui-input-inline' style='width:380px;'>
		<textarea name="azbz" style='height:50px;' maxlength="100" class="layui-textarea checkLen" d_len='100'>{$row.azbz}</textarea> </div>
		<div class="layui-form-mid layui-word-aux">您还可以输入 <b id="check_count">100</b> 个字</div>
				</div>

<div class="layui-form-item">
 <div class='notes'>
	<li> <h3> 安装服务说明：</h3></li>
<li><b>1.</b>【免费安装】、【收费安装】必须且仅能选则其一，不提供任何安装服务的则不允许出售；</li>
<li><b>2.</b>【主机类型】、【操作系统】、【运行环境】、【安装方式】每项至少选一，也可全选；</li>
<li><b>3.</b>【伪静态】为单选项，即该源码是否需要伪静态组件支持方能正常运行；</li>
<li><b>4.</b>【备注说明】可以填写一些上方未列选项，亦或者该源码需某些特殊组件支持等附加说明；</li>
<li><b>5.</b>建议在您的服务能力范围内尽量多选，可以在集市中获得更多的买家筛选展示；</li>
<li><b>6.</b>建议多选不代表可以乱选，一旦无法提供上述所勾选的服务，产生交易纠纷将判定为您的责任。</li>
	 </div>
</div>

</div>
</div>
</div>


<div class="layui-form-item">
    <label class="layui-form-label">发货方式</label>
    <div class="layui-input-block delivery">

<strong class='change {if($row.ifwp == 1)}cur{/if}'><input name="ifwp" type="radio" value="1" lay-filter='change' {if($row.ifwp == 1)}checked{/if} title='自动发货' /></strong> 
<strong class='change {if($row.ifwp != 1)}cur{/if}'><input name="ifwp" type="radio" value="0" lay-filter='change' {if($row.ifwp != 1)}checked{/if} title='手动发货' /></strong><div class="change_box">




<div class="box" {if($row.ifwp == 1)}style='display:none'{/if}>
<div class="layui-form-item">
<label class="layui-form-label">联系Q Q</label>
<div class='layui-input-inline'><input class="layui-input" name="qq" readonly value="{$buy.contact}" size="20" type="text"/></div>
</div>

<div class="layui-form-item">
<label class="layui-form-label">联系电话</label>
<div class='layui-input-inline'><input class="layui-input" name="phone" value="{$user.phone}" readonly size="20" type="text"/></div>
</div>

<div class="layui-form-item">
<div class='notes'>
	<li> <h3>手动发货说明：</h3></li>
<li><b>1.</b>若下载源码有提取码或解压密码请填写；</li>
<li><b>2.</b>买家拍下后会通过以上联系方式联系您取货，这样可能会影响买家延迟确认收货；</li>
<li><b>3.</b>建议如实填写联系电话，避免长时外出而致使买家退款。</li>
<li><b>4.</b>若需修改联系电话、QQ，可前往【<a href="/setup/service" target="_blank">客服设置</a>】、【<a href="/verify/phone" target="_blank">安全中心</a>】修改。</li>
</div>
</div>
</div>


<div class="box" {if($row.ifwp != 1)}style='display:none'{/if}>
<div class="layui-form-item">
<label class="layui-form-label"><span class="red">*</span> 下载地址</label>
<div class='layui-input-inline' style='width:400px;'>
<textarea name="wpurl" class="layui-textarea" style='min-height:80px;' maxlength="80">{$row.wpurl}</textarea></div>
</div>

<div class="layui-form-item">
<label class="layui-form-label"> 解提密码</label>
<div class='layui-input-inline'><input class="layui-input" name="wppwd" value="{$row.wppwd}" size="10" maxlength="30"  type="text"/></div></div>

<div class="layui-form-item">
 <div class='notes'>
	<li> <h3> 自动发货说明：</h3></li>
<li><b>1.</b>请填写源码下载地址，买家拍下后，将获取此地址下载您的源码；</li>
<li><b>2.</b>若下载源码有【提取码】或【解压密码】请在上方【解提密码】处填写，没有可不填。</li>
<li><b>3.</b>推荐使用【<a href="http://pan.baidu.com/" target="_blank">百度网盘</a>】、【<a href="http://www.weiyun.com/disk/index.html" target="_blank">腾讯微云</a>】等网盘进行外链下载；也可以使用您自己的网站下载地址；</li>
<li><b>4.</b><font color='red'>严禁发假货，若被查实，除强制退款于买方外，严重者封号封店。</font></li>
	 </div>
</div>
</div>



</div>
</div>
</div>




<div class="layui-form-item">
    <label class="layui-form-label">展示方式</label>
    <div class="layui-input-block delivery">
		<strong class='change {if $row.show==1||$row.show==0}cur{/if}'><input name="show" lay-filter='change' type="radio" value="1" data=0 {if $row.show==1||$row.show==0}checked{/if} title='常规展示' /></strong> 
		<strong class='change {if $row.show==2}cur{/if}'><input name="show" lay-filter='change' type="radio" value="2" data=1 {if $row.show==2}checked{/if} title='店铺展示' /></strong> 
		<strong class='change {if $row.show==3}cur{/if}'><input name="show" type="radio" value="3" lay-filter='change' data=2 {if $row.show==3}checked{/if} title='私密展示' /></strong>		
		
		<div class="change_box"  style="padding:0;border-top:0">
			<div class="box" {if $row.show!=1&&$row.show!=0}style='display:none;'{/if}>
				<div class="notes">
					<li><h3 style='font-weight:normal;width:100%;line-height:26px;'>{:sysconf('site_name')}源码列表、店铺展示，获得{:sysconf('site_name')}人气带来的销量！</h3></li>
				</div>
			</div>
			<div class="box" {if $row.show!=2}style='display:none;'{/if}>
				<div class="notes">
					<li><h3 style='font-weight:normal;width:100%;line-height:26px;'>不在{:sysconf('site_name')}源码列表展示，仅在店铺展示，适合外部导流式销售！</h3></li>
				</div>
			</div>
			<div class="box" {if $row.show!=3}style='display:none;'{/if}>
				<div class="notes">
					<li><h3 style='font-weight:normal;width:100%;line-height:26px;'>不在{:sysconf('site_name')}源码列表、店铺展示，仅能直接打开，适合面向特定客户销售！</h3></li>
				</div>
			</div>
		</div>
	</div>
</div>



<div class="layui-form-item" style='padding-bottom:15px;'>
    <label class="layui-form-label"></label>
    <div class="layui-input-block"><input type="submit" class="layui-btn" lay-submit=""  value="确认提交" /></div>
</div>
<div class='notes'>
<li><h3>发布规则及声明：</h3></li>
<li><b>1.</b>禁止发<span>博彩</span>、<span>SS彩</span>、<span>棋牌</span>等黄赌毒信息，发现一律删除封号；严重者将IP、手机等信息提交网监部门处理。</li>
<li><b>2.</b><span>缩略图</span>一定要<span>清晰美观</span>及与实际源码<span>相匹配</span>，缩略图乱传或模糊不清一律予以<span>停售</span>，多次出现封号处理；</li>
<li><b>3.</b>禁止重复发布<span>相同缩略图</span>或<span>相同标题</span>的商品，否则同上；</li>
<li><b>4.</b>发布信息与实际<span>不一致</span>（例：描述PHP实际ASP、未提前声明含有加密文件），产生交易纠纷按<span>货不对版</span>予以退款处理；</li>
<li><b>5.</b><span>源码大小</span>（MB）描述和实际误差<span>不能超过10%</span>，否则同上；</li>
<li><b>6.</b><span>缩略图</span>若是页面截图，需与实际源码一致（例：缩略图是蓝色页面，实际源码是红色），否则同上;</li>
<li><b>7.</b>若有<span>演示站</span>，需与实际源码<span>99%一致</span>，除非"有变化的可能性"类似的显著声明（建议图演为主，站演为辅），否则同上；</li>
<li><b>8.</b>禁止<span>额外乱收费</span>，如果必须额外收费，需交易前告知买家及在描述中<span>显著标明</span>，否则同上。</li>
<li><h3>其他事项及声明：</h3></li>
<li style='color:red'><b>1.</b>请保持<span>QQ</span>或<span>联系电话</span>通畅，否则同上；（有买家申诉时，{:sysconf('site_name')}会通过QQ及认证电话联系您协调处理）</li>
<li style='color:red'><b>2.</b>严禁发布出售各主流下载站或CMS官方的<span>免费源码 </span>，否则同上；</li>
<li style='color:red'><b>3.</b>严禁在任何情况下<span>辱骂、人身攻击买家</span>，否则同上；（若买家辱骂、人身攻击您，可保留凭证，联系{:sysconf('site_name')}介入处理）</li>
<li><b>4.</b><span>手动发货</span>源码，在您未发货情况下，买家申请了退款，需予以同意，<span>不能强买强卖</span>；</li>
<li><b>5.</b><span>自动发货</span>源码，买家在没有正当理由及证据的情况下<span>无权单方面取消交易</span>（自动发假货和假链接除外）；</li>
<li><b>6.</b>不要轻易在QQ上或手机上答应买家<span>做不到的承诺</span>，对应的客服通讯聊天记录也是<span>评判责任的证据</span>；</li>
<li><h3>总结：</h3></li>
<li>发布信息内容等同<span>交易合同</span>，售出时会自动对发布信息快照存档；请确保<span>描述真实</span>，<span>质量可靠</span>，<span>服务到位</span>，从而无懈可击的应对各种恶意的退款，否则一旦产生交易纠纷，不仅<span>钱赚不到</span>且<span>浪费彼此时间</span>和<span>有损您的信誉</span>。</li>
	 </div>
  <input type="hidden" name="bh" value="{$bh}">
  <input type="hidden" name="action" value="{$action}">
  <input type="hidden" name="passkey" value="{:passkey()}">
  <input type="hidden" name="psort" id='psort' >
  </form>
 </div>
</div>
{include file="bottom"}<script type="text/javascript">
function banKey(text){if(!text)return[];var str='{$bankey}',strs=decodeURIComponent(str).split(','),list=[];strs.forEach(v=>{var v=v.toLowerCase();if(text.toLowerCase().indexOf(v)>-1&&$.inArray(v,list)<0)list.push(v)});return list}
layer_psort=function(){psort='';$(".filelist div").each(function(i){ $(this).find('.icon').html(i+1);psort+=$(this).find('.fdel').attr('id')+","});$('#psort').val(psort)};$('.filelist .fleft,.fright').live('click',function(){var $v=0;if($('.filelist div').length<2){layer.alert("亲，就我1个，您想移哪去？",{icon:0});return false}$(".filelist .file-panel").css({"height":"0"});$this=$(this).closest('div');$athis=$this.prev();$bthis=$athis;if($(this).attr('class')=="fright"){ $athis=$this;$this=$this.next();$bthis=$this}if($bthis.length<=0){ $this=$(".filelist div:first");$athis=$(".filelist div:last");$v=1}$this.animate({top:$athis.position().top-$this.position().top,left:$athis.position().left-$this.position().left},"300",function(){if($v==1){ $athis.after($this);if($('.filelist div').length>2){ $(".filelist div:first").before($athis)}}else{ $athis.before($this)}});$athis.animate({top:$this.position().top-$athis.position().top,left:$this.position().left-$athis.position().left},"300",function(){ $('.filelist div').css({"left":"0","top":"0"});layer_psort()})});$(".filelist div").live('mouseenter',function(){ $(this).find('.file-panel').stop().animate({height:30})});$(".filelist div").live('mouseleave',function(){ $(this).find('.file-panel').stop().animate({height:0})});$('.file-panel a').live({mouseenter:function(){ $(this).find("span").addClass("cur")},mouseleave:function(){ $(this).find("span").removeClass("cur")}});$('.app_label').live('click',function(){ $(this).prev().click()});var maxnum=9,stop=0;$(".filelist .fdel").live('click',function(){var $this=$(this);$.ajax({type:"POST",url:"/upload/",async:true,data:"action=del&p={$bh}&object="+$this.attr('id')+"&type=code",success:function(is){var arr=is.split('|');var datas=$.trim(arr[0]);if(datas==0){layer.login('再删除',$this.attr('id'))}else if(datas==1){ $this.closest('div').remove();layer_psort();if($('.filelist div').length<=0){ $('.filelist').hide();return false}}else{layer.alert(arr[1],{icon:datas})}},error:function(){layer.msg('网络异常，请重试');return false}})});var uploader=new plupload.Uploader({runtimes:'html5,flash,silverlight,html4',browse_button:'browse',url:"/upload/",resize:{width:900},max_retries:1,flash_swf_url:'/Check/Moxie.swf',silverlight_xap_url:'/Check/Moxie.xap',filters:{prevent_duplicates:true,max_file_size:'3mb',mime_types:[{title:"图片文件",extensions:"jpg,png,gif"}]},multi_selection:true});uploader.init();uploader.bind('FilesAdded',function(uploader,files){var newnum=maxnum-parseInt($('.filelist div').length+$('#FileListing tr').length),flen=files.length,fhtml,vhtml='',ehtml='';if(flen>newnum){layer.alert("<strong>演示图最多能上传"+maxnum+"张（含已传）</strong>",{icon:2});uploader.splice(newnum,10000)}for(var i=0;i<=flen;i++){if(i==flen){if(ehtml!=''){layer.alert("<strong>以下图片已传过了，不要重复上传</strong><br>"+ehtml,{icon:0})}if(uploader.files.length>0){ $('#pluing').show();$(fhtml).appendTo('#FileListing');$('#pluing u').html(uploader.files.length);}return false}if(i>=newnum){continue}var fname=files[i].name,fid=files[i].id,fSuffix=fname.substr(fname.indexOf(".")),f5name=$.md5(files[i].size+files[i].lastModifiedDate+files[i].type)+fSuffix;vhtml='<tr id="file-'+fid+'"><td>'+fname+'</td><td></td><td align="center"><a onclick=deling("'+fid+'")>取消</a></td></tr>';$(".filelist .fdel").each(function(){if($(this).attr('id')==f5name){vhtml='';uploader.removeFile(fid);ehtml+="【"+fname+"】<br>";return false}});fhtml=fhtml+vhtml}});uploader.bind("BeforeUpload",function(uploader,file){uploader.setOption("multipart_params",{lastDate:file.lastModifiedDate,osize:file.size,number:'{$bh}',action:'add',type:'code',maxnum:maxnum})});uploader.bind("UploadProgress",function(uploader,file){ $('#progress-in').width(uploader.total.percent+"%");$("#file-"+file.id+" td:eq(2)").html("<b>"+file.percent+"%</b>")});uploader.bind("FileUploaded",function(uploader,file,info){ $('#progress-uploaded').html(uploader.total.uploaded);var data=$.parseJSON(info.response);if(data.state!=0){ $fh=$('#progress ul');$fh.show();$('<p><span>'+file.name+'</span><br><b>'+data.state+' >> 继续执行…</b></p>').appendTo($fh);stop=4000}});uploader.bind("UploadComplete",function(uploader){setTimeout("$(\"input[type=submit]\").click()",stop)});uploader.bind("Error",function(uploader,err){if(err.message=='HTTP Error.'){fid=err.file.id;$("#file-"+fid+" td:eq(1)").html("<font color=red>系统出错，代码"+err.code+"</font>");$("#file-"+fid+" td:eq(2)").html('<a onclick=deling("'+fid+'")>删除</a>');return false}layer.alert("<strong>"+err.message+"</strong>",{icon:5})});layui.use('form',function(){var form=layui.form();form.verify({money:function(value){if(isNaN(value)||value<{:sysconf('goods_min_price')})return'售价不能低于{:sysconf('goods_min_price')}元'},sizes:function(value){if(!/^\d*\.{0,2}\d{0,2}$/.test(value)||value<=0)return'源码大小只能为数字（允许2位小数）'},azmoney:function(value){if($("input[name=ifaz]:checked").val()==1){if(value<=0){return'安装费不能低于 1 元'}else if(value>parseInt($("input[name=money]").val()*0.1)){return'安装费不能大于售价的10% （'+parseInt($("input[name=money]").val()*0.1)+'元）'}else if(value>200){return'安装费不能大于200元'}}}});var json={'织梦':{"Mysql":"PHP"},'帝国':{"Mysql":"PHP"},'新云':{"Access":"ASP","Mssql":"ASP"},'动易':{"Access":"ASP","Mssql":"ASP"},'齐博':{"Mysql":"PHP"},'杰奇':{"Mysql":"PHP"},'discuz':{"Mysql":"PHP"},'phpwind':{"Mysql":"PHP"},'ecshop':{"Mysql":"PHP"},'wordpress':{"Mysql":"PHP"},'maxcms':{"Access":"ASP","Mssql":"ASP"},'phpcms':{"Mysql":"PHP"},'thinkphp':{"Mysql":"PHP"},'destoon':{"Mysql":"PHP"},'苹果CMS':{"Mysql":"PHP","Access":"ASP","Mssql":"ASP"}};form.on('select(brand)',function(data){var brand=$(data.elem).find("option:selected").text();if(brand!='其他'){ $(".sql option,.lang option").attr("disabled",true);$.each(json[''+$(data.elem).find("option:selected").text()+''],function(sql,lang){ $(".lang option:contains('"+lang+"')").attr("disabled",false);$(".sql option:contains('"+sql+"')").attr("disabled",false)});$(".lang option:not(:disabled):first").attr("selected",true);lang($(".lang option:not(:disabled):first").text())}else{ $(".sql option,.lang option").attr("disabled",false)}$(data.elem).closest(".layui-input-inline").next('.layui-form-mid').html($(data.elem).find("option:selected").data('tips'));form.render('select')});function lang(text){var brand=$(".brand option:selected").text();if(brand=='其他')return false;$.each(json[''+brand+''],function(sql,lang){var disabled=(lang==text)?false:true;$(".sql option:contains('"+sql+"')").attr("disabled",disabled)});$(".sql option:not(:disabled):first").attr("selected",true);form.render('select')};form.on('select(lang)',function(data){lang($(data.elem).find("option:selected").text())});form.on('select(jifen)',function(data){var money=$('input[name=money]').val(),tips=$('.jifen_tips');if(money==""||money<10){tips.html('请先填写上面的售价后再选择此处。售价不可小于10元。');return false}if(data.value!=0){var dm=(money*(data.value*10)/10),sm=(money-dm),jf=(money*(data.value*10));tips.html('允许买家使用<font color=blue>'+jf+'积分</font>抵<font color=red>'+dm+'元</font>购买此商品。（<font color=blue>'+jf+'积分</font>+<font color=red>'+sm+'元</font>）')}else{tips.html('不支持买家使用积分抵价。')}});form.on('radio(change)',function(data){var $this=$(data.elem).closest("strong"),v=typeof($(data.elem).attr("data"))=="undefined"?data.value:$(data.elem).attr("data");$this.addClass("cur").siblings('strong').removeClass('cur');$this.nextAll(".change_box").children('.box').eq(v).show().siblings('.box').hide()});form.on('checkbox(app)',function(data){var $div=$(data.elem).nextAll("label").eq(0);(!data.elem.checked)?$div.removeClass("curr"):$div.addClass("curr")});form.on('submit',function(data){var isOK=true,BanKeyTrue=false;$(".delivery .icheckbox").each(function(){if($(this).find('input:checked').length<=0){ $name=$(this).find('label');scTop('.delivery');layer.tips('亲，【'+$name.html()+'】至少得选一项哦！',$name);isOK=false;return false}});$('.demandtips').remove();editor.$txt.html(editor.$txt.html().replace(/<\/?(cite)[^>]*>/gi,''));$.each(['tit','cdes','txt','azbz'],function(key,name){var input=$('[name='+name+']'),Res=banKey(input.val());if(Res.length>0){var div=input.closest(".layui-form-item"),tips='【'+div.find(".layui-form-label").html().replace(/[^0-9\u4e00-\u9fa5]/g,'')+'】含有违禁关键词：<font class="red">'+Res.join('、')+'</font>',html='<div class="demandtips" style="margin:15px 20px 0 110px;padding:8px 10px 5px 10px"><a class="close" onclick="$(this).parent().fadeOut(\'slow\');" title="关闭提示">X</a><p class="title"><i class="icons" style="margin-top:-12px"></i><b style="font-size:14px;">'+tips+'</b></p></div>';div.prev().attr('class')=='demandtips'?div.prev().find('b').html(tips):div.before(html);if(name=='txt'){Res.forEach(v=>{editor.$txt.html(editor.$txt.html().replace(new RegExp(v,"gm"),'<cite style="background:red;color:#fff;">'+v.trim()+'</cite>'))})}isOK=false;BanKeyTrue=true}});if(BanKeyTrue)scTop(".demandtips:eq(0)",15);if(!isOK){return false}if(uploader.total.queued>0){progress();$('#progress-upload').html(uploader.total.queued);uploader.start();return false}else{progress(true);return true}})});etips='<font style="font-size: 12px;">\u6e29\u99a8\u63d0\u793a\uff1a\u8bf7\u8ba4\u771f\u586b\u5199\u63cf\u8ff0\uff0c\u4e0d\u591f\u8be6\u7ec6\u6216\u5c06\u65e0\u6cd5\u8fc7\u5ba1\uff1b\u865a\u5047\u63cf\u8ff0\u6216\u4e0e\u5b9e\u9645\u4e0d\u7b26\uff0c\u4ea7\u751f\u4ea4\u6613\u7ea0\u7eb7\u60a8\u5c06\u8d1f\u5168\u8d23\uff01<a target="_blank" href="{:sysconf('site_domain')}/help/view/95">\u67e5\u770b\u8be6\u60c5</a></font>';var editor=new wangEditor('content');editor.onchange=function(){editor.$txt.find("img").remove()};editor.create();
</script>
</body>
</html>